<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	template="/resources/common/template.xhtml">

	<ui:define name="body">

		<h:form>
			<rich:panel>
				<f:facet name="header">
					<h:outputText value="Cadastro de Exemplo" />
				</f:facet>

				<h:panelGrid columns="2">
					
					<h:outputLabel value="Codigo:" />
					<h:inputText value="#{exemploAction.exemplo.codigo}" />
					<h:outputLabel value="Descricao:" />
					<h:inputText value="#{exemploAction.exemplo.descricao}" />
					
				</h:panelGrid>

				<h:panelGrid columns="3">
					<h:commandButton value="Salvar" action="#{exemploAction.salvar}"
						rendered="#{exemploAction.exemplo.id == null}" />
					
					<s:button type="reset" value="Limpar" />					
				</h:panelGrid>

			</rich:panel>
		</h:form>

	</ui:define>

</ui:composition>
